package com.hs.carrental.entity;

import java.math.BigDecimal;
import java.time.LocalDateTime;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.persistence.Table;

/**
 * <p>
 *
 * </p>
 *
 * @author lyy
 * @since 2021-03-17
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("orders")
public class Order implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
    @TableId(value = "orderId",type = IdType.AUTO)
    private Integer orderId;

    /**
     * 订单编号
     */
    @TableField("orderCode")
    private String orderCode;

    /**
     * 车牌编号
     */
    @TableField("carId")
    private Integer carId;

    /**
     * 客户编号
     */
    @TableField("customerId")
    private String customerId;

    /**
     * 经办人
     */
    private String agent;

    /**
     * 经办人Id
     */
    @TableField("adminId")
    private String adminId;

    /**
     * 门店
     */
    private String store;

    @TableField("storeId")
    private Integer storeId;

    /**
     * 订单状态( '0': '未租赁', '1': '未取车',  '2': '已租赁', '3': '已归还')
     */
    @TableField("orderState")
    private Integer orderState;

    /**
     * 租车总费用
     */
    @TableField("rentMoney")
    private BigDecimal rentMoney;

    /**
     * 租车开始时间
     */
    @TableField("rentTime")
    private LocalDateTime rentTime;

    /**
     * 租车结束时间
     */
    @TableField("rentEndTime")
    private LocalDateTime rentEndTime;

    /**
     * 订单创建时间
     */
    @TableField("orderTime")
    private LocalDateTime orderTime;

    @TableField("carNumber")
    private String carNumber;

}
